package com.zmn.oms.persistence.interfaces.perf;

import com.zmn.oms.model.entity.perf.PerfCity;
import com.zmn.oms.model.entity.perf.PerfCityQuery;
import com.zmn.oms.model.entity.perf.PerfCitySummary;

import java.util.List;

/**
 * 类描述：城市绩效
 *
 * @author liuying
 * @date 2019/01/30 16:24
 */
public interface PerfCityDao {

    /**
     * 绩效列表查询
     *
     * @param perfCityQuery
     * @return
     */
    List<PerfCity> listPerfCity(PerfCityQuery perfCityQuery);

    /**
     * 描述: 根据条件查询数据条数
     *
     * @param perfCityQuery 查询条件
     * @return java.lang.Integer
     * @author wangjie
     * @date 16:12 2019/3/2
     **/
    Integer countPerfCity(PerfCityQuery perfCityQuery);

    /**
     * 批量新增
     *
     * @param list
     */
    void insertBatch(List<PerfCity> list);

    /**
     * 新增
     *
     * @param perfCity
     * @return
     */
    int insert(PerfCity perfCity);

    /**
     * 按月份删除
     * @return
     */
    Integer deleteByDateSpan(Integer month);

    PerfCitySummary findTotalLine(PerfCityQuery query);
}